package site.eblog.dao;

import java.util.List;

import site.eblog.entity.Role;
import site.eblog.entity.User;

public interface RoleMapper {
	/**
	 * 根据userid查询user-role表得到roleid
	 * @param user
	 * @return
	 */
	public List<Role> getRolesById(User user);
	
	/**
	 * 成功del用户后把user_role对应的也del
	 * @return
	 */
	public int delUserRole(int userId);
}
